package vendingmachine

class PaymentTransaction {
	static belongsTo = ShiroUser
	
//	ShiroUser user
	Long tradeTime
	String vender
	String cardId
	String itemName //FIXME replace a domain object
	
	//TODO add the method to ask the state
	
    static constraints = {
		
    }
	
	public String toString(){
		return "${vender}-${itemName}(${new Date(tradeTime)})"
	}
}
